libqt5sql5-psql software package provides Qt 5 PostgreSQL database driver, you can install in your Ubuntu 14.04 LTS (Trusty Tahr) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install libqt5sql5-psql
libqt5sql5-psql is installed in your system.
Make ensure the libqt5sql5-psql package were installed using the commands given below,
$ sudo dpkg-query -l | grep libqt5sql5-psql *
You will get with libqt5sql5-psql package name, version, architecture and description in a table
| Distro | Ubuntu 14 04 lts trusty tahr |
| Section | Libraries |
| Package | libqt5sql5-psql |
| Version | 5.2.1+dfsg-1ubuntu14.3 [amd64, |
| Description | Qt 5 PostgreSQL database driver |
| Sub Section | libs |